sådan laver du leaderstats

  1. lav en script i serverScriptService
game.Players.PlayerAdded:Connect(function(player) --makes a function
	local leaderstats = Instance.new("Folder", player) --makes a folder and makes the folder be in player
	leaderstats.Name = "leaderstats" --names the folder leaderstats is importen or then it dosent work
	
	local cash = Instance.new("NumberValue", leaderstats) --makes the stat
	cash.Name = "cash" --the name of the stat
	cash.Value = "0" --how much cash you start with
end)

--if you want more stats copy this--

--local TheNameOfTheStat Instance.new("NumberValue", leaderstats)
--TheNameOfTheStat.Name = "TheNameOfTheStat"
--TheNameOfTheStat.Value = "0"